﻿#ifndef VERIFYEXTRAUNITYDLG_H
#define VERIFYEXTRAUNITYDLG_H

#include <QDialog>

namespace Ui {
class VerifyExtraUnityDlg;
}

class VerifyExtraUnityDlg : public QDialog
{
    Q_OBJECT

public:
    explicit VerifyExtraUnityDlg(QWidget *parent = 0);
    ~VerifyExtraUnityDlg();

    enum ColIndex{
        CI_ID       = 0,   //子目id
        CI_NAME     = 1,   //子目名
        CI_OLD_V    = 2,   //原值
        CI_OLD_D    = 3,   //原方向
        CI_NEW_V    = 4,   //新值
        CI_NEW_D    = 5,   //新方向
        CI_BUTTON   = 6    //更新按钮
    };

private slots:
    void subSelChanged(int index);
    void on_pushButton_clicked();
    void rowSelectChanged();
    void fillValue();

    void on_actInspectOmitSSub_triggered();

    void on_btnRead_clicked();

    void on_btnUpdate_clicked();

    void on_btnPreview_clicked();

private:
    void init();
    bool hasFillRow();

    Ui::VerifyExtraUnityDlg *ui;
};

#endif // VERIFYEXTRAUNITYDLG_H
